;(function () {
  'use strict';
  angular.module('controllers.faultLocation.alarmStatisticAnalysis', [])
    .controller('alarmStatisticAnalysisCtrl', alarmStatisticAnalysisCtrl);

  function alarmStatisticAnalysisCtrl($scope, CoreService,System,appAlarmServer) {
    var nav = ['/appAlarm', '/strain'];
    $scope.pageItmes = [10, 20, 50, 100];
    $scope.selectedIndex = CoreService.navgit(nav);
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      $scope.selectedIndex = nav.indexOf(state.url);
    });
    //获取系统名称对象
  	$scope.sysNames = System;
  	$scope.timeTypes = appAlarmServer.getTimeType();
  	$scope.changeTime = appAlarmServer.changeTime;
  }
})();